<?php /* Smarty version 3.0rc1, created on 2010-05-21 00:47:06
         compiled from "/var/www/htdocs/localhost/esmus//templates/home.tpl" */ ?>
<?php /*%%SmartyHeaderCode:11944701384bf5adda231f53-65521035%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c0bb301b94df1f86f5da406b53a88ee479509c3c' => 
    array (
      0 => '/var/www/htdocs/localhost/esmus//templates/home.tpl',
      1 => 1274384466,
    ),
  ),
  'nocache_hash' => '11944701384bf5adda231f53-65521035',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<center>
    This is the homepage!
<?php if ($_smarty_tpl->getVariable('logged')->value){?>Logged<?php }else{ ?>Not Logged<?php }?>

<form action="/user/login" method="post">
	<table>
		<tr>
			<td>Username</td>
			<td>
				<input type="text" name="username" id="form_user">
			</td>
		</tr>
		<tr>
			<td>Password</td>
			<td>
				<input type="password" name="password" id="form_pass">
			</td>
		</tr>
		<tr>
			<td>
				<input type="submit" value="Login">
			</td>
		</tr>
	</table>
</form>

<form action="/user/register" method="post">
	<table>
		<tr>
			<td>Username</td>
			<td>
				<input type="text" name="username" id="form_user">
			</td>
		</tr>
		<tr>
			<td>Password</td>
			<td>
				<input type="password" name="password" id="form_pass">
			</td>
		</tr>
		<tr>
			<td>
				<input type="submit" value="Register">
			</td>
		</tr>
	</table>
</form>

<table border="1">
    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('debug')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
    <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
</td>
        <td>
			<?php if (is_array($_smarty_tpl->tpl_vars['v']->value)){?>
				<table style="width: 100%;">
				<?php  $_smarty_tpl->tpl_vars['v_v'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['v_k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['v']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['v_v']->key => $_smarty_tpl->tpl_vars['v_v']->value){
 $_smarty_tpl->tpl_vars['v_k']->value = $_smarty_tpl->tpl_vars['v_v']->key;
?>
					<tr>
						<td>
							<?php echo $_smarty_tpl->tpl_vars['v_k']->value;?>

						</td>
						<td>
							<?php echo $_smarty_tpl->tpl_vars['v_v']->value;?>

						</td>
					</tr>
				<?php }} ?>
				</table>
			<?php }else{ ?>
				<?php echo $_smarty_tpl->tpl_vars['v']->value;?>

			<?php }?>
        </td>
    </tr>
    <?php }} ?>
</table>
</center>
